import request from '../../utils/request'

// 类似这样写api
export const getJay = (id) => {
  return request({
    method: 'get',
    url: '/artists/?id=' + id
  })
}
// export const searchGoods = ({ str, page, limit }) => {
//   return request({
//     method: 'get',
//     url: `/goods/search?query=${str}&pagenum=${page}&pagesize=${limit}`
//   })
// }
export const getGoods = ({ str = '', page, limit }) => {
  return request({
    method: 'get',
    url: `/goods/search?query=${str}&pagenum=${page}&pagesize=${limit}`
  })
}
export const getGoodsDetail = (id) => {
  return request({
    method: 'get',
    url: `/goods/detail?goods_id=${id}`
  })
}


